﻿using Abp.Modules;
using Abp.Reflection;
using Castle.Core.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Abp.GridFS
{
    [DependsOn(typeof(AbpKernelModule))]
    public class AbpGridFSModule : AbpModule
    {
        public ILogger Logger { get; set; }

        //private readonly ITypeFinder _typeFinder;

        public AbpGridFSModule()
        {
            //_typeFinder = typeFinder;
            Logger = NullLogger.Instance;
        }


        public override void PreInitialize()
        {
            using (var db = new GridFSDbContext())
            {
                db.GridFsInfo.Any();
            }
            base.PreInitialize();
        }


        public override void Initialize()
        {
            base.Initialize();
        }

    }
}
